package com.biaobiaoqi.scoreanalysis.util;

import java.util.HashMap;
import java.util.Map;

public enum SchoolType {
	PRIMARY_SCHOOL {
		@Override
		public String getName() {
			return "小学";
		}
	},
	SENIOR_SCHOOL {
		@Override
		public String getName() {
			return "初中";
		}
	},
	HIGH_SCHOOL {
		@Override
		public String getName() {
			return "高中";
		}
	};
	
    public abstract String getName();  
    
    public  static Map<String, String> getMap() {  
        Map<String, String> maps = new HashMap<String, String>();  
        SchoolType[] type = SchoolType.class.getEnumConstants();  
        for (SchoolType s : type) {  
            maps.put(s.toString(), s.getName());  
        }  
        return maps;  
    }  

}
